<template>
  <div class="nation">
    <el-checkbox-group v-model="model.fuelList" @change="handlerCheckBox">
      <el-checkbox label="1">液化气</el-checkbox>
      <el-checkbox label="2">煤</el-checkbox>
      <el-checkbox label="3">天然气</el-checkbox>
      <el-checkbox label="4">沼气</el-checkbox>
      <el-checkbox label="5">柴火</el-checkbox>
      <el-checkbox label="9">其他</el-checkbox>
    </el-checkbox-group>
  </div>
</template>

<script>
export default {
  props: {
    model: {
      type: Object,
      default: () => {}
    }
  },
  data() {
    return {}
  },
  methods: {
    handlerCheckBox(value) {
      if (this.model.fuelList.length > 1) {
        this.model.fuelList.splice(0, 1)
      }
    }
  }
}
</script>
<style lang="scss" scoped>
.nation {
  // display: flex;
  .el-input {
    margin-left: 15px;
  }
}
</style>
